<?php


return [
    'domain' => env('OSS_DOMAIN'),
    //上传后未提交默认过期时间,单位:天  -1表示永不过期,如果场景没有配置过期时间,则按照默认的过期时间进行文件清理
    'default_expired_days' => 1,
    'scene' => [//上传场景
        'default' => [
            'desc' => '普通文件上传',//场景描述
            'path' => 'upload',//上传后再oss的子路径
            'expired_days' => 7,// 上传7天后过期
        ],
        'excel' => [
            'desc' => 'excel文件导入导出',
            'path' => 'excel',
            'expired_days' => 3//3天过期
        ],
        'material' => [
            'desc' => '素材库场景',
            'path' => 'material',
            'expired_days' => -1,//永不过期
        ],
        'image' => [
            'desc' => '缩略图轮播图头像场景',
            'path' => 'image',
            'expired_days' => -1,//1天后过期
        ],
        'audio' => [//未配置expired_days就走默认过期时间1天过期
            'desc' => '音频场景',
            'path' => 'audio',
            'expired_days' => -1,//永不过期
        ],
        'video' => [
            'desc' => '视频场景',
            'path' => 'video',
            'expired_days' => -1,//永不过期
        ],
        'cert' => [
            'desc' => '微信支付商户证书',
            'path' => 'cert',
            'expired_days' => -1,//永不过期
        ],
        'figures_video' => [
            'desc' => '形象克隆场景',
            'path' => 'figures_video',
            'expired_days' => -1,//永不过期
        ],
    ],
    'check_extension' => [//各场景允许上传的后缀
        'default' => ['pdf', 'ofd', 'xlsx', 'xls', 'jpg', 'png', 'jpeg', 'bmp', 'gif', 'mov', 'mp4', '3gp', 'mp3', 'm4a', 'aac', 'wav', 'zip', 'txt', 'docx'],
        'excel' => ['xlsx', 'xls'],
        'material' => ['jpg', 'png', 'jpeg', 'bmp', 'gif', 'mov', 'mp4', '3gp', 'mp3', 'm4a', 'aac', 'wav'],
        'image' => ['jpg', 'png', 'jpeg', 'bmp', 'gif', 'ico'],
        'audio' => ['mp3', 'm4a', 'aac', 'wav', 'acc'],
        'video' => ['mov', 'mp4', '3gp', 'webm'],
        'figures_video' => ['mov', 'mp4', '3gp', 'webm'],
        'cert' => ['pem'],
    ],
    'check_size' => [// 文件大小检测，MB
        'default' => 50,
        'excel' => 20,
        'material' => 50,
        'image' => 5,
        'audio' => 20,
        'video' => 150,
        'figures_video' => 150,
        'cert' => 1,
    ],
    //oss上传后回调域名
    'callback_uri' => env('APP_URL', 'https://bin.51daoteng.com'),
    //oss上传后回调路由
    'callback_route' => env('CALLBACK_ROUTE', '/callback/oss_upload_check'),
];
